$(function () {
    // 加载 Mui组件
    mui.init();

    $('#bottomNav a').each(function (r, v) {
        switch (r) {
            case 0:
                $(this).bind('tap', function () {
                    mui.openWindow({
                        url: '/front/shop/home.do',
                        id: 'shop'
                    });
                });
                break;
            case 1:
                $(this).bind('tap', function () {
                    mui.openWindow({
                        url: '/front/goods/home.do',
                        id: 'goods'
                    });
                });
                break;
            case 2:
                $(this).bind('tap', function () {
                    mui.openWindow({
                        url: '/front/personal/home.do',
                        id: 'personal'
                    });
                });
                break;
        }
    });
});